‹#›
Autodesk Inventor 定制开发在线培训 2010
•Inventor 不会帮你删除你的菜单、按钮
•插件第一次运行，或插件版本升级了
§FirstTime = True
§创建 ControlDefinitions 和 CommandCategories；
§通常需要创建 Environments, CommandBars, 和 Controls
§
•第 X 次运行，且注册版本号没变
§FirstTime = False
§创建 ControlDefinitions 和 CommandCategories
§当前的 controls, command bars 和 environments 一般不用修改（如果被删除了就要创建）
•插件的版本

| By default once an AddIn created its user interface, then Inventor will take care of it – store it’s position, the environments it’s in and re-associate them to the appropriate component definition when the AddIn gets loaded.
| That is if the version number remains the same. But you may create a new version, which would have different user interface (or at least something would be different).
| IN this case you just change the version number and Inventor takes care of the rest